<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="{{__PUBLIC__}}/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="{{__PUBLIC__}}/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="{{__PUBLIC__}}/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="{{__PUBLIC__}}/Admin/Flat/img/favicon.ico">

	</head>
	<style type="text/css">
		*{
			text-align: center;
			font-size: 15px;
		}
		th{
			text-align: center;
		}
	</style>
	<body>
		<table class="table table-hover">
			<tr class="active" >
			  <th width="200">商品品牌ID</th>
			  <th width="300">品牌名称</th>
			  <th width="300">品牌LOGO</th>
			  <th width="200">排序</th>
			  <th width="200">是否热门</th>
			  <th width="100">操作</th>
			</tr>
		{{foreach from="$brandData" value="$v"}}
			<tr>
				<td>{{$v['bid']}}</td>
				<td>{{$v['bname']}}</td>
				<td><img width="100" height="50" src="{{__ROOT__}}/{{$v['logo']}}" alt=""></td>
				<td>{{$v['sort']}}</td>
				<td>{{$v['ishot']}}</td>
				<td width="200">
					<a href="{{U('Brand/edit',array('bid'=>$v['bid']))}}" class="btn btn-sm btn-warning">编辑</a>
					<a href="javascript:;" class="btn btn-sm btn-danger" onclick="if(confirm('确定删除吗？？')) location.href='{{U('Brand/del',array('bid'=>$v['bid']))}}'">删除</a>
				</td>
			</tr>
		{{endforeach}}
		</table>
	</body>
</html>